#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#include<assert.h>

typedef struct BinaryTree {
	int data;
	struct BinaryTree* left;
	struct BinaryTree* right;
}BTNode;

typedef BTNode* QueueDataType;

typedef struct QueueNode {
	QueueDataType data;
	struct QueueNode* next;
}QueueNode;

typedef struct Queue {
	QueueNode* first;
	QueueNode* tail;
}Queue;

void QueueInit(Queue* p);
void QueueDestory(Queue* p);
void QueuePush(Queue* p, QueueDataType x);
void QueuePop(Queue* p);
QueueDataType QueueFront(Queue* p);
QueueDataType QueueTail(Queue* p);
bool QueueEmpty(Queue* p);